package org.exhaust.barbecue.test.model;

import lombok.Data;
import lombok.ToString;
import org.exhaust.barbecue.AbstractRequest;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

@Data
@ToString(callSuper = true)
public class AddUserRequest extends AbstractRequest {

    @NotBlank(message = "用户名不能为空")
    private String username;

    @Positive(message = "年龄必须为正数")
    private int age;

}
